﻿#param($device_sn, $video_file_path, $record_time)
param($device_sn, $video_file_path)

Write-host $device_sn $video_file_path

#$device_sn = "1B0D323534574601"
#$video_file_path = "/sdcard/test_video1019.mp4"
echo "adb -s $device_sn shell screenrecord $video_file_path"
#adb -s $device_sn shell screenrecord --time-limit $record_time $video_file_path
adb -s $device_sn shell screenrecord $video_file_path